import { useRouter } from 'next/router';
import { Button, Empty } from 'antd';
import styles from '@/styles/ShoppingCart.module.scss';

export default function EmptyCart (){
    const router = useRouter();
    return (
        <div className={styles['empty']}>
            <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} description="购物车竟然是空的" />
            <p>再忙，也要抽出时间去犒赏自己~</p>
            <Button onClick={() => { router.push('/') }}>去逛逛</Button>
        </div>
    )
}
